﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteAdmin.Master"
    Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.ViewModels.KeyWordViewModel>" %>
    <%@ Import Namespace="Beeldbankmvc.Code" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Beeldarchief Rijkswaterstaat
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderAction("AdminMenu", "Miscellaneous"); %>
    <h2>Nieuw trefwoord</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset style="border: 0px;">
        <legend style="display: none;">Velden</legend>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.KeyWord.Word) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.KeyWord.Word)%>
            <%: Html.ValidationMessageFor(model => model.KeyWord.Word)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.KeyWord.WordAlternative)%>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.KeyWord.WordAlternative)%>
            <%: Html.ValidationMessageFor(model => model.KeyWord.WordAlternative)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.KeyWord.WordCorrection)%>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.KeyWord.WordCorrection)%>
            <%: Html.ValidationMessageFor(model => model.KeyWord.WordCorrection)%>
        </div>
        <p>
            <input type="submit" value="Opslaan" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <a href="<%= Url.Action("Index", "KeyWord") %>">
            <img src="<%=AppHelper.getContent("~/Content/images/list.jpg") %>" alt="Terug naar het overzicht" />
            Terug naar het overzicht</a>
    </div>
</asp:Content>
